//
//  LFBNetworkingTool.h
//  LFBLoveFreshBee
//
//  Created by 张睿 on 16/8/20.
//  Copyright © 2016年 丁鼎. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
typedef NS_ENUM(NSInteger,LFBRequestType){
    LFBRequestTypeHome = 1,
    LFBRequestTypeFirstSell = 2,
    LFBRequestTypeAD = 7,
    LFBRequestTypeSuperMarket =  5,
    LFBRequestTypeSearch = 6,
    LFBRequestTypePromotion = 8,
    LFBRequestTypeMyorders = 13,
    LFBRequestTypeMyCoupon = 9,
    LFBRequestTypeSystemMessage = 10,
    LFBRequestTypeUserMessage = 11,
    LFBRequestTypeMyAdress = 12
};


//成功回调
typedef void(^SuccessCompleteBlock)(id responseObject);

//失败回调
typedef void(^FaileCompleteBlock) (NSError *error);


@interface LFBNetworkingTool : AFHTTPSessionManager



+ (instancetype)sharedTool;

//获取首页数据
-(void)getdataWithRequestTpye:(LFBRequestType) type WithSuccessBlock:(SuccessCompleteBlock)success OrFailureBlock:(FaileCompleteBlock)failure;



@end
